package com.aiti.lulian.service.impl;

import com.aiti.base.core.base.service.iml.BaseSerivceImpl;
import com.aiti.lulian.dto.LuLianPurchaseDemandDto;
import com.aiti.lulian.entity.LuLianPurchaseDemand;
import com.aiti.lulian.mapper.LuLianPurchaseDemandMapper;
import com.aiti.lulian.service.ILuLianPurchaseDemandService;
import com.aiti.lulian.vo.LuLianPurchaseDemandVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LuLianPurchaseDemandServiceImpl extends BaseSerivceImpl<LuLianPurchaseDemandMapper, LuLianPurchaseDemand> implements ILuLianPurchaseDemandService {

    @Autowired
    private LuLianPurchaseDemandMapper lulianPurchaseDemandMapper;
    @Override
    public List<LuLianPurchaseDemandVo> findLuLianPurchaseDemandListPage(Page<LuLianPurchaseDemand> page, LuLianPurchaseDemandDto luLianPurchaseDemandDto) {
        return lulianPurchaseDemandMapper.findLuLianPurchaseDemandListPage(page,luLianPurchaseDemandDto);
    }

    @Override
    public LuLianPurchaseDemandVo selectById(String baseId) {
        return lulianPurchaseDemandMapper.getById(baseId);
    }
}
